<template>
  <el-dialog
    title="提示"
    :visible.sync="dialogVisible"
    width="30%"
    destroy-on-close
  >
    <div class="test">
      <div class="box">
        <div class="box3" v-show="isEdit">
          <span>编号id</span
          ><el-input
            placeholder="编号id"
            v-model="row.id"
            clearable
            disabled
          ></el-input>
        </div>
        <div class="box1">
          <span>测试名称</span>
          <el-input
            placeholder="二氧化碳传感器"
            v-model="row.name"
            clearable
          ></el-input>
        </div>
        <div class="box2">
          <span>测量单位</span>
          <el-input placeholder="1x" v-model="row.unit" clearable></el-input>
        </div>
      </div>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="$emit('update:dialogVisible', false)">取 消</el-button>
      <el-button type="primary" @click="$emit('allclick', row)"
        >确 定</el-button
      >
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: ["row", "isEdit", "dialogVisible"],
};
</script>

<style>
</style>